home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
util
/
wb
/
startpanel.lha
/
StartPanel
/
Arexx
/
Miami_Prefs.rexx
< prev
Wrap
OS/2 REXX Batch file
|
1998-11-05
|
2KB
|
54 lines
/* ___ ___ */
/* _/ /_______\ \_ ___ ___ __ _ _ __ ___ ___ */
/*__// / _______ \ \\___/ \___*/
/*_/ | ' \__ __/ ` | \_/ © Copyright 1998, Christopher Page \__*/
/* \ | | | |__ | | / \ All Rights Reserved / */
/* >| . | _/ . |< >--- --- -- - - -- --- ---< */
/* / \ \ | | / / \ / This file may not be distributed, reproduced or \ */
/* \ \ \_/ \_/ / / \ altered, in full or in part, without written / */
/* \ \ / / \ permission from Christopher Page except / */
/* //\ \_________/ /\\ //\ under the conditions in the StartPanel / */
/*- --\ _______ /-- - --\ documentation, legal section /-----*/
/*-----\_/ \_/---------\ ___________________________________ /------*/
/* \_/ \_/ */
/* */
/* Description: */
/* */
/* This arexx script will open the Miami preferences window (ie: the Miami */
/* window...). If Miami is not loaded then this script will attempt to load */
/* it before sending the show command. The script requires you to have set */
/* up the Miami: assign. */
options results
ADDRESS COMMAND
DO_STDERR = 0;
IF OPEN(STDERR, "CON:////Miami_On.rexx -- Error messages window/WAIT/AUTO", "w") then DO_STDERR = 1
if ~show('p', 'MIAMI.1') then do
'wbrun Miami:Miami'
cpt=0
do while ~show('p', 'MIAMI.1')
'wait 1'
cpt = cpt + 1
if cpt=10 then do
if DO_STDERR then do
call writeln(STDERR, "Timeout while waiting for Maimi to start.")
end
call quit
end
end
end
address MIAMI.1 show
error:
syntax:
quit:
if DO_STDERR then call close(STDERR);
exit 0